home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / xferrev2.arc / REVERSE.DOC < prev    next >
Text File  |  1989-02-07  |  1KB  |  34 lines

  1. REVERSE is a quick and dirty utility designed to reverse the
  2. order of lines in an ASCII text file.  It is run this way:
  3.  
  4.     REVERSE file.ext
  5.  
  6. To illustrate the program's operation, assume that the file whose
  7. name is passed to REVERSE contains:
  8.  
  9.     ABC
  10.     XYZ
  11.  
  12. When REVERSE finishes its operation, the file will contain:
  13.  
  14.     XYZ
  15.     ABC
  16.  
  17. REVERSE needs 64K of RAM and enough space in the current
  18. directory to make a temporary copy of the file it operates on. 
  19. The program expects to find the file in the current directory and
  20. will place the reordered file in the current directory. 
  21. Attempting to use path names in the argument given to REVERSE may
  22. cause unpredictable results.  REVERSE reads its input file fairly
  23. quickly.  Because the program must reposition the disk head for
  24. each line while the new file is being written, the time required
  25. to write the file is considerably greater.
  26.  
  27. REVERSE was written specifically to deal with the Exec-PC BBS
  28. XFERn.TXT files.  The Turbo C source code is included here.  An
  29. examination of the code will reveal the fact that it is indeed
  30. "quick and dirty".  Feel free to modify it as you see fit.
  31.  
  32. Dale Ulmer
  33. Wauwatosa WI
  34. February, 1989